package io.renren.common.utils;

/**
 * 常量
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年11月15日 下午1:23:52
 */
public class Constant {
	/** 超级管理员ID */
	public static final int SUPER_ADMIN = 1;

	/**
	 * 菜单类型
	 * 
	 * @author chenshun
	 * @email sunlightcs@gmail.com
	 * @date 2016年11月15日 下午1:24:29
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 定时任务状态
     * 
     * @author chenshun
     * @email sunlightcs@gmail.com
     * @date 2016年12月3日 上午12:07:22
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
    	NORMAL(0),
        /**
         * 暂停
         */
    	PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }
        
        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    public static class WEIXIN{
        //获取access_token 接口路径
        public static String GET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token";
        public static String GET_JS_API_TICKET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket";
        public static final String ACCESS_TOKEN_KEY = "access_token";
        public static final String JS_API_TICKET_KEY = "jsapiTicket";

    }

    public static class ReqMsgType{
        public static final String TEXT        = "text";
        public static final String IMAGE       = "image";
        public static final String LINK        = "link";
        public static final String LOCATION    = "location";
        public static final String VOICE       = "voice";
        public static final String VIDEO       = "video";
        public static final String SHORT_VIDEO = "shortvideo";
        public static final String EVENT       = "event";
    }

    public static class ReqEventType{
        public static final String SUBSCRIBE       = "subscribe";
        public static final String UNSUBSCRIBE     = "unsubscribe";
        public static final String CLICK           = "CLICK";
        public static final String VIEW            = "VIEW";
        public static final String LOCATION        = "LOCATION";
        public static final String SCAN            = "SCAN";
        public static final String SCANCODEPUSH    = "scancode_push";
        public static final String SCANCODEWAITMSG = "scancode_waitmsg";
        public static final String PICSYSPHOTO     = "pic_sysphoto";
        public static final String PICPHOTOORALBUM = "pic_photo_or_album";
        public static final String PICWEIXIN       = "pic_weixin";
        public static final String LOCATIONSELECT  = "location_select";
        public static final String TEMPLATESENDJOBFINISH  = "TEMPLATESENDJOBFINISH";
        public static final String MASSSENDJOBFINISH="MASSSENDJOBFINISH";
    }

    public static class RespType{
        public static final String TEXT = "text";

        public static final String IMAGE = "image";

        public static final String VOICE = "voice";

        public static final String VIDEO = "video";

        public static final String MUSIC = "music";

        public static final String NEWS = "news";

        public static final String KF = "transfer_customer_service";
    }
}
